from langchain_community.tools import DuckDuckGoSearchRun
import os
os.environ['http_proxy']="http://localhost:7890"
os.environ['https_proxy']="http://localhost:7890"
search=DuckDuckGoSearchRun()
print(search.invoke("今日上海的天气怎么样"))